package com.yuexun.beilunpatient.ui.doctorwarn.adapter;

import android.widget.AbsListView;

import com.yuexun.beilunpatient.R;
import com.yuexun.beilunpatient.ui.doctorwarn.bean.DocWarnBean;

import org.kymjs.kjframe.widget.AdapterHolder;
import org.kymjs.kjframe.widget.KJAdapter;

import java.util.Collection;

/**
 * Created by chenss on 2018/3/22 0022.
 */

public class DocWarnAdapter extends KJAdapter<DocWarnBean> {

    public DocWarnAdapter(AbsListView view, Collection<DocWarnBean> mDatas, int itemLayoutId) {
        super(view, mDatas, itemLayoutId);
    }

    @Override
    public void convert(AdapterHolder helper, DocWarnBean item, boolean isScrolling) {
        super.convert(helper, item, isScrolling);
        helper.setText(R.id.createTime, item.getCreateTime());
        helper.setText(R.id.content, item.getRemindContent());
        helper.setText(R.id.tv_doc, item.getAccountNam());
    }
}
